﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WLWeb.UC
{
    public partial class Head : System.Web.UI.UserControl
    {   
        protected void Page_Load(object sender, EventArgs e)
        {
            GetUrlCss();
        }
        protected void GetUrlCss()
        {
             if (Request.Url.AbsoluteUri.ToString().Contains("Index.aspx"))
             {
                hidnum.Value = "1";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("CreateTaoCan.aspx"))
             {
                 hidnum.Value = "2";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("Case.aspx"))
             {
                 hidnum.Value = "3";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("QianYue.aspx"))
             {
                 hidnum.Value = "4";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("Service.aspx"))
             {
                 hidnum.Value = "5";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("Solution.aspx"))
             {
                 hidnum.Value = "6";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("News.aspx") || Request.Url.AbsoluteUri.ToString().Contains("NewsDetails.aspx"))
             {
                 hidnum.Value = "7";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("Support.aspx") || Request.Url.AbsoluteUri.ToString().Contains("SupportDetail.aspx"))
             {
                 hidnum.Value = "8";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("JianZhan.aspx"))
             {
                 hidnum.Value = "9";
             }
             else if (Request.Url.AbsoluteUri.ToString().Contains("About.aspx"))
             {
                 hidnum.Value = "10";
             }
        }
    }
}